﻿<Window x:Class="Sample.BasicConcepts.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:zoil="http://zoil.codeplex.com/schemas/2012"
        Title="MainWindow" Background="Black" 
        mc:Ignorable="d" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Sample.BasicConcepts"
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" d:DesignHeight="1000" 
        d:DesignWidth="1000" 
        WindowState="Maximized"
        >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <zoil:ZInformationLandscape Grid.Row="1" x:Name="landscape" ConstraintsEnabled="False">
            <i:Interaction.Behaviors>
                <zoil:KeyboardInputBehavior />
                <zoil:MouseInputBehavior />
            </i:Interaction.Behaviors>
            <Canvas Background="Blue" zoil:ZInformationLandscape.ZoomTarget="True">
                <local:MySemanticZoomControl Canvas.Left="500" Canvas.Top="500" Width="100" Height="100" />
                <Border Canvas.Top="500" Canvas.Left="300" BorderBrush="Green" BorderThickness="10.0" CornerRadius="10">
                    <zoil:ZInformationLandscape.ZoomModifierGroup>
                        <zoil:ZoomModifierCollection>
                            <zoil:ThicknessModifier Property="Border.BorderThickness" Modifier="0"/>
                            <zoil:CornerRadiusModifier Property="Border.CornerRadius" Modifier="0"/>
                        </zoil:ZoomModifierCollection>
                    </zoil:ZInformationLandscape.ZoomModifierGroup>
                    <Rectangle Fill="Red" Width="100" Height="100"/>
                </Border>
            </Canvas>
        </zoil:ZInformationLandscape>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" Background="Green">
            <TextBlock VerticalAlignment="Center">Constraints Enabled:</TextBlock>
            <ToggleButton VerticalAlignment="Center" IsChecked="{Binding ElementName=landscape, Path=ConstraintsEnabled, Mode=TwoWay}" Content="{Binding ElementName=landscape, Path=ConstraintsEnabled}"/>
        </StackPanel>
    </Grid>
</Window>
